Page({
    data: {
        pages: [
            { name: '01_注册页面', path: '/pages/01_register_page/index' },
            { name: '02_常见组件', path: '/pages/02_common_page/index' },
            { name: '03_学习wxss', path: '/pages/03_learn_wxss/index' },
            { name: '04_学习wxml', path: '/pages/04.learn_wxml/index' },
            { name: '05_学习wxs', path: '/pages/05_learn_wxs/index' },
            { name: '06_学习事件', path: '/pages/06_learn_event/index' },
            { name: '07_组件化开发', path: '/pages/07_learn_component/index' },
            { name: '08_组件化开发2', path: '/pages/08.learn-slot/index' },
            { name: '09_学习api', path: '/pages/09.learn_network/index' },
            { name: '10.learn_api', path: '/pages/10.learn_api/index' },
            { name: '11.learn_nav', path: '/pages/11_learn_nav/index' },
            { name: '12.learn_login', path: '/pages/12_learn_login/index' },
        ]
    },
    onBtnClick(e) {
        let item = e.target.dataset.item

        wx.navigateTo({
          url: item.path,
        })
    },
})